package com.xgc.server2.fallback;


import com.xgc.server1.Server1FeignClient;
import com.xgc.server2.Server2FeignClient;
import org.springframework.cloud.openfeign.FallbackFactory;

public class Server2FeignFallBack implements FallbackFactory<Server2FeignClient> {

	@Override
	public Server2FeignClient create(Throwable cause) {
		return doSomething -> "server2服务调用失败";
	}
}
